import i18n from "@/locale/index";
import Layout from "@/layout/index";

export default {
    //渠道管理
    path: '/channel',
    redirect: '/channel/whileChannelList',
    meta: {
        path: 'channel'
    },
    component: Layout,
    children: [
        {
            //白名单渠道
            path: 'whileChannelList',
            name: 'whileChannelList',
            meta: {
                path: 'channel/whileChannelList'
            },
            component: () => import('@/views/channel/whileChannelList/index'),
        },
        {
            //白名单
            path: 'whiteList',
            name: 'whiteList',
            meta: {
                path:'channel/whiteList'
            },
            component: () => import('@/views/user/whiteList/index'),
        },
        {
            //投放渠道
            path: 'deliveryChannel',
            name: 'deliveryChannel',
            meta: {
                path: 'channel/deliveryChannel'
            },
            component: () => import('@/views/channel/deliveryChannel/index'),
            children: [
                {
                    //投放列表
                    path: 'deliveryChannelList',
                    name: 'deliveryChannelList',
                    meta: {
                        path: 'channel/deliveryChannel/deliveryChannelList'
                    },
                    component: () => import('@/views/channel/deliveryChannel/deliveryChannelList/index'),
                },
                {
                    //投放链接统计
                    path: 'deliveryLinkStatistics',
                    name: 'deliveryLinkStatistics',
                    meta: {
                        path: 'channel/deliveryChannel/deliveryLinkStatistics'
                    },
                    component: () => import('@/views/channel/deliveryChannel/deliveryLinkStatistics/index'),
                },
                {
                    //投放公司统计
                    path: 'deliveryCompanyStatistics',
                    name: 'deliveryCompanyStatistics',
                    meta: {
                        path: 'channel/deliveryChannel/deliveryCompanyStatistics'
                    },
                    component: () => import('@/views/channel/deliveryChannel/deliveryCompanyStatistics/index'),
                },
            ]
        },
    ]
}
